#ifndef __LXZ_PPPLOGGER_H__
#define __LXZ_PPPLOGGER_H__

#define LXZ_PPPLOGGER_MAX_LENGTH 2048

typedef struct _pcap_file_header_t 
{
    uint32 ut_pcap_magic;
    uint16 ut_ver_major;
    uint16 ut_ver_minor;
    uint32 ut_cur_timezone;
    uint32 ut_cur_timestamp;
    uint32 ut_max_snaplength;
    uint32 ut_cur_linktype;
}pcap_filehdr_t;

typedef struct _pcap_packet_header_t 
{
    uint32 it_capture_sec;
    uint32 it_capture_usec;
    uint32 it_capture_len;
    uint32 it_actual_len;
}pcap_packethdr_t;

void * lxzpcap_ppplogger_f_open(const char * p_ppplogger_filename);
sint32 lxzpcap_ppplogger_f_write(void * p_ppplogger_ctxt, sint32 i_recv_flag, sint32 i_data_len, uint08 * p_data_buf);
sint32 lxzpcap_ppplogger_f_close(void * p_ppplogger_ctxt);

#endif /* __LXZ_PPPLOGGER_H__ */


